home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / ForCLI / flp_by_anp.lha / FLP_BY_ANP / Rst.doc < prev    next >
Text File  |  1996-02-24  |  3KB  |  52 lines

  1.  
  2. *****************************************************************************
  3. * Project Details                                                           *
  4. * ---------------                                                           *
  5. * Project Name:    Rst (RESET)                                              *
  6. * Project Version: 1                                                        *
  7. * Copyright:       Anthony N Peck                                           *
  8. * Date:            Sunday 21st May 1995                                     *
  9. *                                                                           *
  10. * Contact:                                                                  *
  11. * 68 Woralul ST                                                             *
  12. * Waramanga ACT 2611                                                        *
  13. * Australia                                                                 *
  14. *                                                                           *
  15. * E-Mail: Anthony.Peck@Radford.act.edu.au                                   *
  16. *                                                                           *
  17. * Summary                                                                   *
  18. * -------                                                                   *
  19. *                                                                           *
  20. * Usage: Rst                                                                *
  21. *                                                                           *
  22. * A dinky little program that clears some memory vectors before a reset.    *
  23. * The code is inspired by Chris Hames VirusMemKill which has an option to   *
  24. * reset during times of infections.  There is no real need to clear the     *
  25. * xxxxCapture vectors, but I assume that it would be nice if your system    *
  26. * lock up is due to a virus.  I suggest you could attach this program to    *
  27. * your menu (e.g. via BrowserII) or as a hotkey (e.g. MachIV), and then     *
  28. * if your Shell goes down you still have access to a good boot!  For a      *
  29. * WB solution, check out WBRst.                                             *
  30. *                                                                           *
  31. *****************************************************************************
  32.  
  33. ; If you want to find out about some of these structures, see HEXTRACT by
  34. ; Chas Wyndham on Fish #817.
  35.  
  36. Start:  MOVE.L  $04,A6          ; ExecBase to A6
  37.         CLR.L   $32(A6)         ; Clear Warm Capture
  38.         CLR.L   $2E(A6)         ; Clear Cool Capture
  39.         CLR.L   $2A(A6)         ; Clear Cold Capture
  40.         CLR.L   $226(A6)        ; Clear KickTagPtr
  41.  
  42.         LEA     Boot,A5         ; Load boot routine to A5
  43.         JSR     -$1E(A6)        ; Supervisor mode reboot
  44.  
  45. Boot:   LEA     $F000000,A0     ; Load end of ROM to A0
  46.         RESET                   ; Stack pointer set for supervisor mode
  47.         JMP     (A0)            ; Jump and gone...
  48.  
  49.         END                     ; Adios!
  50.  
  51.  
  52.